import { VmTyp } from './types'

export const vmInstance: VmTyp = {
    $el: document.body,
    $data: { number: 100, name: "张三" },
    __proxyDate(data) {

    }
}
Object.defineProperties(vmInstance, {
    number: {
        enumerable: true,
        configurable: true,
        get() {
            return this.$data.number
        },
        set(val) {
            this.$data.number = val
        }
    },
    name: {
        enumerable: true,
        configurable: true,
        get() {
            return this.$data.name
        },
        set(val) {
            this.$data.name = val
        }
    }
})
